
var Wiki={
	sintax:[
		{get:/\{\{([^|]+?)\|([^\]]+?)\}\}/gm,tag:"<label for=\"$2\">$1</label>"},
		{get:/\[\[([^|]+?)\|([^\]]+?)\]\]/gm,tag:"<a href=\"$2\">$1</a>"},
		{get:/\!\!(.+?)\!\!/gm,tag:"<span style='background-color:#ddd'>$1</span>"},
		{get:/\/\/(.+?)\/\//gm,tag:"<span style='background-color:navy;color:white;'>$1</span>"},
		{get:/--(.+?)--/gm,tag:"<s>$1</s>"},
		{get:/\'\'(.+?)\'\'/gm,tag:"<em>$1</em>"},
		{get:/\*\*(.+?)\*\*/gm,tag:"<strong>$1</strong>"},
		{get:/__(.+?)__/gm,tag:"<u>$1</u>"},
		{get:/\n/gm,tag:"<br/>"}
	],
	render:function(c){
		for(var i=0,o;o=this.sintax[i];i++){
			c = c.replace(o.get,o.tag);
		}
		return c;
	}
}